package com.douguo.recipe.manager;

import java.util.HashMap;

import android.app.Application;

public class AppRuntime{
	
	
	public static boolean showOPDA;

	private static HashMap<String, Object> mGlobal;
	
	private static AppRuntime mAppRuntime;
	public static AppRuntime getInstance() {
		if(mAppRuntime == null) {
			mAppRuntime = new AppRuntime();
		}
		return mAppRuntime;
	}
	
	
	public void clear() {
		if(mGlobal != null) {
			mGlobal.clear();
		}
	}
	
	public void put(String key, Object obj) {
		if(mGlobal == null) {
			mGlobal = new HashMap<String, Object>();
		}
		mGlobal.put(key, obj);
	}
	
	public Object get(String key) {
		if(mGlobal == null)
			return null;
		return mGlobal.get(key);
	}

}
